<!doctype html>
<html lang="cn">

<head>
	<meta charset="UTF-8">
	<title>回国服务</title>
	<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="css/child.css">
	<link rel="stylesheet" href="css/upWindow.css" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/style.css" />
	<script src="bootstrap/js/jquery1.11.3.js"></script>
	<script src="bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/register.js"></script>
	<script type="text/javascript" src="js/topPublic.js"></script>
	<style>
		.child-table {
			margin-top: 20px;
		}
		
		.accordion-group {
			border: 1px solid #f7f7f7;
		}
	</style>
</head>

<body>
	<script type="text/javascript" src="js/header.js"></script>
	<div style="background-color: #f7f7f7;">
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<img src="img/2016-06-07_132530.jpg" style="width: 100%;margin-bottom: 30px;min-width:1178px;" />
				</div>
			</div>

			<div class="row-fluid">
				<div class="head-main">
					<div class="row-fluid">
						<div class="fl" style="width: 285px;">
							<div class="accordion" id="accordion-190303">
								<div class="accordion-group">
									<div class="accordion-heading">
										<div class="accordion-toggle child-1" onclick="location.href='returnee.html'"  style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;">回国服务/ Reture Service</div>
									</div>

								</div>
								<div class="accordion-group">
									<div class="accordion-heading">
										<div class="accordion-toggle collapsed child-2" style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;" data-toggle="collapse" data-parent="#accordion-190303" onclick="window.open('http://tb.53kf.com/code/client/10130038/1][img]http://tb.53kf.com/kfimg.php?arg=10130038&style=1[/img]','_blank','height=500,width=750,top=220,left=500')">在线咨询</div>
									</div>
								</div>

								<div class="accordion-group">
									<div class="accordion-heading">
										<div class="accordion-toggle collapsed child-3" style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;" data-toggle="collapse" data-parent="#accordion-190303" onclick="window.location.href='child.html'">套餐参考</div>
									</div>

								</div>
							</div>

							<div>
								<div class="child-contact">联系我们 <span style="font-size: 14px;color: #ccc;">/Contact Us</span></div>
								<p class="top-line"></p>
								<div><img src="img/2016-06-07_140314.png" style="width:285px;height:120px;margin-bottom:20px;"></div>
								<div class="child-name">南京圣嘉尔</div>
								<div class="child-add">地址：南京市秦淮区汉中路</div>
								<div class="child-add">89号金鹰国际商城24层C3</div>
								<div class="child-add">电话：400-163-0766</div>
								<div class="child-add">手机：18625170088</div>
								<div class="child-add">QQ：2199207469</div>
							</div>
						</div>

						<div class="fl mids mainwidth" id="mid1">
							<div class="flow-title" id="colname"></div>
							<span class="fl" style="border: 3px solid #eb6100;width:120px;"></span>
							<span class="fr" style="border-bottom:2px solid #EBEBEB;width:734px;height:2px;"></span>
							<div class="tabbox"></div>
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
	<input type="hidden" value="returnee" id="navid" />
	<script type="text/javascript" src="js/footer.js"></script>
	<script src="js/banner.js"></script>
	<script>
		function getQueryString(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
			var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
			var context = "";
			if(r != null)
				context = r[2];
			reg = null;
			r = null;
			return context == null || context == "" || context == "undefined" ? "" : context;
		}
		$(function() {
			detail(getQueryString('sid'))
		});

		function detail(sid) {
			$.ajax({
				url: "/baby/infos/getInformation",
				data: {
					sid: sid
				},
				type: 'post',
				cache: false,
				dataType: 'json',
				success: function(data) {
					if(data.code == 200) {
						var type= Number(data.data.type);
						console.log(type)
						switch (type){
							case 2:$("#colname").append("流程&优势")
								break;
							case 3:$("#colname").append("资讯")
								break;	
							default:$("#colname").append("回国指导")
								break;
						}
													
						var data = data.data;
						var time = data.createTiem;
						var details = data.details;
						var title = data.title;
						$(".tabbox").append(details);
					} else if(data.code == 500) {
						$(".tabbox").text('');
						alert(data.message)
					}
				}
			});
		}
	</script>

</body>

</html>